
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>猜歌送红包 - 红包领取记录</title>


    <link rel="shortcut icon" href="favicon.ico">
    <link href="https://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/font-awesome/4.4.0/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <!-- Data Tables -->
    <link href="/Public/Admin/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">
    <link href="/Public/Admin/css/style.min.css?v=4.1.0" rel="stylesheet">

    <style>
        .pages a,
        .pages span {
            display: inline-block;
            padding: 5px 18px;
            margin: 0 1px;
            border: 1px solid #f0f0f0;
            -webkit-border-radius: 3px;
            -moz-border-radius: 3px;
            border-radius: 3px;
            font-size: 15px;
        }

        .pages a,
        .pages li {
            display: inline-block;
            list-style: none;
            text-decoration: none;
            color: #58A0D3;
        }

        .pages a.first,
        .pages a.prev,
        .pages a.next,
        .pages a.end {
            margin: 0;
        }

        .pages a:hover {
            border-color: #50A8E6;
        }

        .pages span.current {
            background: #50A8E6;
            color: #FFF;
            font-weight: 700;
            border-color: #50A8E6;
        }
        .color{background: red;border-color: red;}
    </style>
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>{$title}
                        <small>礼物领取记录</small>
                    </h5>

                </div>

                
                <div class="ibox-content">

                    <div>
                        <a class="btn btn-primary <if condition="$name eq 1">color</if>" href="{:U('GuessNewSong/game_redbag')}">空耳君(猜歌名大师)</a>
                        <a class="btn btn-primary <if condition="$name eq 2">color</if>" href="{:U('GuessNewSong/game_redbagplus')}">疯狂猜歌</a>
                        <a class="btn btn-primary <if condition="$name eq 3">color</if>" href="{:U('GuessNewSong/game_redbagnao')}">脑筋猜歌</a>
                    </div>

                    <div>
                        <form role="form" class="form-inline" method="get">
                            <div class="form-group">
                                <label for="uid" class="sr-only">用户id</label>
                                <input name="uid" type="text" placeholder="用户id" id="uid" class="form-control">
                            </div>

                            <div class="form-group">
                                <button class="btn btn-white" type="submit">搜索</button>
                            </div>

                        </form>
                    </div>

                    <table class="table table-striped table-bordered table-hover dataTables-example">
                        <thead>
                        <tr>
                        	<td>
                               <input type="checkbox" class="i-checks" onClick="$('input[name*=\'selected\']').prop('checked', this.checked);">
                            </td>
                            <th>序号</th>
                            <th>ID</th>
                            <th>红包订单号</th>
                            <th>用户id</th>
                            <th>红包金额</th>
                            <th>红包状态</th>
                            <th>生成时间</th>
                            <th>领取时间</th>
                            <th>标签</th>
                        </tr>
                        </thead>
                        <tbody>
                        
                      	<?php 
                        
                        	if(! empty($data['newsong_redbag']))
                            {
                            	foreach($data['newsong_redbag'] as $key => $val)
                                {
                        ?>
                        <tr class="gradeX">
                        	<td>
                            
                            <input class="ids" type="checkbox" name="selected[]"  value="{$val['challenge_id']}">
                        
                            </td>
                            <td>{++$key;}</td>
                            <td>{$val['challenge_id']}</td>
                            <td>{$val['total_sn']}</td>
                            <td>{$val['member_id']}</td>
                            <td>{$val['red_total']}</td>


                            <td class="center">{$val['status']}</td>
                            <td class="center">{$val['create_time']}</td>
                            <td class="center">{$val['update_time']}</td>
                            <td class="center">{$val['title']}</td>

                            
                        </tr>
                        
                        
                        <?php
                        		}
                            }    
                        ?>

                        <tr class="gradeX">
                            <td>
                            </td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td>总钱数：{$sum}</td>
                            <td class="center"></td>
                            <td class="center"></td>
                            <td class="center"></td>
                            <td class="center"></td>

                        </tr>

                        </tbody>
                        
                    </table>

                    <div class="pages">{$page}</div>

                </div>
            </div>
        </div>
    </div>

</div>

<script src="https://cdn.staticfile.org/jquery/2.1.4/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="/Public/Admin/js/plugins/dataTables/jquery.dataTables.js"></script>
<script src="/Public/Admin/js/plugins/dataTables/dataTables.bootstrap.js"></script>
<script src="/Public/Admin/js/plugins/layer/layer.js?v=1.0"></script>
<script type="text/javascript" src="/Public/Admin/js/contabs.min.js?v=1.0"></script>
<script>


</script>
</body>

</html>
